const app = getApp()
Page({
  /**
 * 生命周期函数--监听页面初次渲染完成
 */
  onReady: function () {

    this.dialog = this.selectComponent("#dialog");
  },

  showDialog() {
    this.dialog.showDialog();
  },


  _cancelEvent() {
    console.log('你点击了取消');
    this.dialog.hideDialog();
  },

  _confirmEvent() {
    console.log('你点击了确定');
    this.dialog.hideDialog();
  }

})